const routes = [
    {
      path: '/home',
      name: 'home',
      component: () => import('../views/HomeView.vue'),
      children:[
        {
          path: '/home/homepage',
          name: 'homepage',
          component: () => import('../components/HomePage.vue'),
        },
        {
          path: '/home/bbtpage',
          name: 'bbtpage',
          component: () => import('../components/BbtPage.vue'),
        },
        {
          path: '/home/indendpage',
          name: 'indendpage',
          component: () => import('../components/IndendPage.vue'),
        },
        {
          path: '/home/minepage',
          name: 'minepage',
          component: () => import('../components/MinePage.vue'),
        },
        {
          path:'/home',
          redirect:'/home/homepage',
        },
        {
          path:'*',
          component:()=>import('../views/NotFound.vue')
        }
      ]
    },
    {
      path:'/',
      redirect:'/home',
    },
    {
      path:'*',
      component:()=>import('../views/NotFound.vue')
    }
]

export default routes;